Skip to content

Conversation

@lergor
Copy link
Owner

@lergor lergor commented Sep 25, 2018

No description provided.

Copy link

@sproshev sproshev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

зачтено с замечаниями по reset/content/checkout, исправить можно в 3

import java.io.*;
import java.nio.charset.StandardCharsets;

public class Message {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

про эту штуку вроде писал в 1


public void print() {
System.out.print(read());
}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

unused


public BlobType type;
public String name;
public InputStream content;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

лучше путь или что-то такое, что точно не хранит в себе системные ресурсы, а здесь может быть поток с открытым файловым дескриптором

и он нигде не закрывается (((

return include;
}
}
).collect(Collectors.toList());

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

перенеслось

GitFileKeeper.clearDirectory(tree.index());
fileKeeper.restoreCommit(references, tree.index());
clerk.changeHeadInfo(revision);
return new CommandResult(ExitStatus.SUCCESS, "reset: done!");

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

не очищается storage

if (!GitFileKeeper.checkFilesExist(files)) {
return new CommandResult(ExitStatus.FAILURE, "");
}
GitFileKeeper.copyAll(files, tree.index(), tree.repo());
Copy link

@sproshev sproshev Oct 30, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

checkout должен происходить не из индекса, а storage

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants